package nc.vo.ct.purdaily.entity;

import nc.vo.ct.entity.CtAbstractVO;
import nc.vo.ct.enumeration.CtEntity;
import nc.vo.pub.IVOMeta;
import nc.vo.pub.lang.UFBoolean;
import nc.vo.pub.lang.UFDateTime;
import nc.vo.pub.lang.UFDouble;
import nc.vo.pub.lang.UFLiteralDate;
import nc.vo.pubapp.pattern.model.meta.entity.vo.VOMetaFactory;
import nc.vo.pubapp.res.NCModule;

public class CtPuVO extends CtAbstractVO {
	public static final String BBRACKETORDER = "bbracketorder";
	public static final String BPROTSUPPLY = "bprotsupply";
	public static final String BPUBLISH = "bpublish";
	public static final String BSHOWLATEST = "bshowlatest";
	public static final String BSRCECMCT = "bsrcecmct";
	public static final String CVENDORID = "cvendorid";
	public static final String CVENDORVID = "cvendorvid";
	public static final String IPRICETYPE = "ipricetype";
	public static final String IRESPSTATUS = "irespstatus";
	public static final String MODIFYSTATUS = "modifystatus";
	public static final String PK_CT_PU = "pk_ct_pu";
	public static final String PK_PUBPSN = "pk_pubpsn";
	public static final String PK_PURCORP = "pk_purcorp";
	public static final String PK_RESPPSN = "pk_resppsn";
	public static final String TPUBTIME = "tpubtime";
	public static final String TRESPTIME = "tresptime";
	public static final String VREASON = "vreason";
	public static final String CRATETYPE = "cratetype";
	public static final String FRATECATEGORY = "fratecategory";
	public static final String DRATEDATE = "dratedate";
	public static final String NACCPAYREQMNY = "naccpayreqmny";
	public static final String NACCPAYMNY = "naccpaymny";
	public static final String NINVOICEMNY = "ninvoicemny";
//	public static final String SUPPLIERUSER = "supplieruser";
	public static final String SENDEMAILCOUNT = "sendemailcount";
	public static final String BUSINESSEMAIL = "businessemail";
	private static final long serialVersionUID = -6057905148775268085L;

	public Integer getSendEmailCount() {
		return (Integer) getAttributeValue("sendemailcount");
	}

	public void setSendEmailCount(Integer sendemailcount) {
		setAttributeValue("sendemailcount", sendemailcount);
	}

	public String getBusinessEmail() {
		return (String) getAttributeValue("businessemail");
	}

	public void setBusinessEmail(String businessemail) {
		setAttributeValue("businessemail", businessemail);
	}
	
//	public String getSupplieruser() {
//		return (String) getAttributeValue("supplieruser");
//	}
//
//	public void setSupplieruser(String supplieruser) {
//		setAttributeValue("supplieruser", supplieruser);
//	}

	public UFBoolean getBbracketOrder() {
		return (UFBoolean) getAttributeValue("bbracketorder");
	}

	public UFBoolean getBprotsupply() {
		return (UFBoolean) getAttributeValue("bprotsupply");
	}

	public UFBoolean getBpublish() {
		return (UFBoolean) getAttributeValue("bpublish");
	}

	public UFBoolean getBsc() {
		return (UFBoolean) getAttributeValue("bsc");
	}

	public UFBoolean getBshowLatest() {
		return (UFBoolean) getAttributeValue("bshowlatest");
	}

	public UFBoolean getBsrcecmct() {
		return (UFBoolean) getAttributeValue("bsrcecmct");
	}

	public String getCvendorid() {
		return (String) getAttributeValue("cvendorid");
	}

	public String getCvendorvid() {
		return (String) getAttributeValue("cvendorvid");
	}

	public Integer getIpricetype() {
		return (Integer) getAttributeValue("ipricetype");
	}

	public Integer getIrespstatus() {
		return (Integer) getAttributeValue("irespstatus");
	}

	public IVOMeta getMetaData() {
		IVOMeta meta = VOMetaFactory.getInstance()
				.getVOMeta(NCModule.CT.getName().toLowerCase() + "." + CtEntity.ct_pu.name());
		return meta;
	}

	public Integer getModifyStatus() {
		return (Integer) getAttributeValue("modifystatus");
	}

	public String getPk_ct_pu() {
		return (String) getAttributeValue("pk_ct_pu");
	}

	public String getPk_pubpsn() {
		return (String) getAttributeValue("pk_pubpsn");
	}

	public String getPk_purcorp() {
		return (String) getAttributeValue("pk_purcorp");
	}

	public String getPk_resppsn() {
		return (String) getAttributeValue("pk_resppsn");
	}

	public UFDateTime getTpubtime() {
		return (UFDateTime) getAttributeValue("tpubtime");
	}

	public UFDateTime getTresptime() {
		return (UFDateTime) getAttributeValue("tresptime");
	}

	public String getVreason() {
		return (String) getAttributeValue("vreason");
	}

	public String getCratetype() {
		return (String) getAttributeValue("cratetype");
	}

	public Integer getFratecategory() {
		return (Integer) getAttributeValue("fratecategory");
	}

	public UFLiteralDate getDratedate() {
		UFLiteralDate date = (UFLiteralDate) getAttributeValue("dratedate");
		if (date != null) {
			return date;
		}
		return null;
	}

	public void setBbracketOrder(UFBoolean bbracketorder) {
		setAttributeValue("bbracketorder", bbracketorder);
	}

	public void setBprotsupply(UFBoolean bprotsupply) {
		setAttributeValue("bprotsupply", bprotsupply);
	}

	public void setBpublish(UFBoolean bpublish) {
		setAttributeValue("bpublish", bpublish);
	}

	public void setBsc(UFBoolean bsc) {
		setAttributeValue("bsc", bsc);
	}

	public void setBshowLatest(UFBoolean bshowlatest) {
		setAttributeValue("bshowlatest", bshowlatest);
	}

	public void setBsrcecmct(UFBoolean bsrcecmct) {
		setAttributeValue("bsrcecmct", bsrcecmct);
	}

	public void setCvendorid(String cvendorid) {
		setAttributeValue("cvendorid", cvendorid);
	}

	public void setCvendorvid(String cvendorvid) {
		setAttributeValue("cvendorvid", cvendorvid);
	}

	public void setIpricetype(Integer ipricetype) {
		setAttributeValue("ipricetype", ipricetype);
	}

	public void setIrespstatus(Integer irespstatus) {
		setAttributeValue("irespstatus", irespstatus);
	}

	public void setModifyStatus(Integer modifystatus) {
		setAttributeValue("modifystatus", modifystatus);
	}

	public void setPk_ct_pu(String pk_ct_pu) {
		setAttributeValue("pk_ct_pu", pk_ct_pu);
	}

	public void setPk_pubpsn(String pk_pubpsn) {
		setAttributeValue("pk_pubpsn", pk_pubpsn);
	}

	public void setPk_purcorp(String pk_purcorp) {
		setAttributeValue("pk_purcorp", pk_purcorp);
	}

	public void setPk_resppsn(String pk_resppsn) {
		setAttributeValue("pk_resppsn", pk_resppsn);
	}

	public void setTpubtime(UFDateTime tpubtime) {
		setAttributeValue("tpubtime", tpubtime);
	}

	public void setTresptime(UFDateTime tresptime) {
		setAttributeValue("tresptime", tresptime);
	}

	public void setVreason(String vreason) {
		setAttributeValue("vreason", vreason);
	}

	public void setCratetype(String cratetype) {
		setAttributeValue("cratetype", cratetype);
	}

	public void setFratecategory(Integer fratecategory) {
		setAttributeValue("fratecategory", fratecategory);
	}

	public void setDratedate(UFLiteralDate dratedate) {
		setAttributeValue("dratedate", dratedate);
	}

	public UFDouble getNaccpayreqmny() {
		return (UFDouble) getAttributeValue("naccpayreqmny");
	}

	public UFDouble getNaccpaymny() {
		return (UFDouble) getAttributeValue("naccpaymny");
	}

	public void setNaccpayreqmny(UFDouble naccpayreqmny) {
		setAttributeValue("naccpayreqmny", naccpayreqmny);
	}

	public void setNaccpaymny(UFDouble naccpaymny) {
		setAttributeValue("naccpaymny", naccpaymny);
	}

	public UFDouble getNinvoicemny() {
		return (UFDouble) getAttributeValue("ninvoicemny");
	}

	public void setNinvoicemny(UFDouble invoicemny) {
		setAttributeValue("ninvoicemny", invoicemny);
	}
}